public class WuNeng implements Role{
    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    public void endureDamage(){
        System.out.println("猪八戒正在承受伤害。");
    }
}
